package com.zdp.dubbo.consumer.controller;

import com.zdp.dubbo.consumer.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhengDp
 * @Date 2023/6/3 17:04
 */
@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("/createOrder")
    public String createOrder() {
        return orderService.createOrder();
    }

    @GetMapping("/createOrder1")
    public String createOrde1() throws InterruptedException {
        return orderService.createOrder1();
    }

    @GetMapping("/createOrder2")
    public String createOrder2() {
        return orderService.createOrder2();
    }
}
